﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BakeryTest.UI
{
    public partial class Form1 : Form
    {
        string UserName = "TEST"; string Password = "TEST";

        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            BakeryWS.BakeryWSSoapClient client = new BakeryWS.BakeryWSSoapClient();
            string token = "";
            int userId = 0;
            client.LogIn_Unencrypted(this.UserName, this.Password, out token, out userId);

            this.textBox1.Text = token;
            this.richTextBox1.Text = "poToken= " + token + " UID= " + userId+"/n";


        }
    }
}
